/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-20 11:07:56
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-20 15:26:51
 * @别瞎看: 你个无脑牛马
 */
public abstract class Animal2 {
    //成员属性
    private String color;
    private int age;
    //构造器
    public Animal2(){
        System.out.println("调用无参构造器");
    }
    public Animal2(String color,int age){
        this.color=color;
        this.age=age;
    }
    //成员方法(抽象方法)
    public abstract void eat();
    public abstract void sleep();
}